var str = 10.23;
var number = parseInt(str, 10);
console.log(number);